#ifndef COLLISIA_CONTROL_H
#define COLLISIA_CONTROL_H

#include <QThread>
#include <typeinfo>
#include "scene.h"
#include "enemy_sign.h"
#include "mng_explosion.h"
#include "cash.h"
#include "consts.h"
#include <QtAlgorithms>
#include "hud.h"
#include "sprite_explosion.h"

class COLLISIA_CONTROL : public QObject
{
    Q_OBJECT

    int timer_id;

    SCENE *scene;

    QGraphicsObject *collisia_item;

    QPainterPath col_vo;

    QTimeLine *global_tl;

    CASH *cash;

    SOUND_POWER *bum_1;
    SOUND_POWER *bum_2;
    SOUND_POWER *bum_3;

public:

    explicit COLLISIA_CONTROL(SCENE *scene, QGraphicsObject *collisia_item, QObject *father, QTimeLine *global_tl,CASH *cash, int loop_timer);

    void timerEvent(QTimerEvent *);

    ~COLLISIA_CONTROL();

signals:

    void Collisia(QPointF babah, int damage);
    
public slots:


    
};

#endif // COLLISIA_CONTROL_H
